using QAssetBundle;
using UnityEngine;
using UnityEngine.UI;
using QFramework;
using UnityEngine.SceneManagement;

namespace ProjectSurvival
{
	public class GamePassPanelData : UIPanelData
	{
	}
	public partial class GamePassPanel : UIPanel
	{
		protected override void OnInit(IUIData uiData = null)
		{
			mData = uiData as GamePassPanelData ?? new GamePassPanelData();
			// please add init code here
			AudioKit.PlaySound(Gamepass_wav.GamePass);
			Time.timeScale = 0;
			btnGamestart.onClick.AddListener(() =>
			{
				AudioKit.PlaySound(Buttonclick_wav.ButtonClick);
				Global.ResetData();
				CloseSelf();
				SceneManager.LoadScene("GameStartScene");
			});
		}
		
		protected override void OnOpen(IUIData uiData = null)
		{
		}
		
		protected override void OnShow()
		{
		}
		
		protected override void OnHide()
		{
		}
		
		protected override void OnClose()
		{
			Time.timeScale = 1;
		}
	}
}
